package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Matchdetail implements Serializable {
    private String mdno;

    private Integer mdtno;

    private Integer mano;

    private String tno;

    private Integer mdtime;

    private String mddesc;

    private static final long serialVersionUID = 1L;

    public String getMdno() {
        return mdno;
    }

    public void setMdno(String mdno) {
        this.mdno = mdno;
    }

    public Integer getMdtno() {
        return mdtno;
    }

    public void setMdtno(Integer mdtno) {
        this.mdtno = mdtno;
    }

    public Integer getMano() {
        return mano;
    }

    public void setMano(Integer mano) {
        this.mano = mano;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public Integer getMdtime() {
        return mdtime;
    }

    public void setMdtime(Integer mdtime) {
        this.mdtime = mdtime;
    }

    public String getMddesc() {
        return mddesc;
    }

    public void setMddesc(String mddesc) {
        this.mddesc = mddesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Matchdetail other = (Matchdetail) that;
        return (this.getMdno() == null ? other.getMdno() == null : this.getMdno().equals(other.getMdno()))
            && (this.getMdtno() == null ? other.getMdtno() == null : this.getMdtno().equals(other.getMdtno()))
            && (this.getMano() == null ? other.getMano() == null : this.getMano().equals(other.getMano()))
            && (this.getTno() == null ? other.getTno() == null : this.getTno().equals(other.getTno()))
            && (this.getMdtime() == null ? other.getMdtime() == null : this.getMdtime().equals(other.getMdtime()))
            && (this.getMddesc() == null ? other.getMddesc() == null : this.getMddesc().equals(other.getMddesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMdno() == null) ? 0 : getMdno().hashCode());
        result = prime * result + ((getMdtno() == null) ? 0 : getMdtno().hashCode());
        result = prime * result + ((getMano() == null) ? 0 : getMano().hashCode());
        result = prime * result + ((getTno() == null) ? 0 : getTno().hashCode());
        result = prime * result + ((getMdtime() == null) ? 0 : getMdtime().hashCode());
        result = prime * result + ((getMddesc() == null) ? 0 : getMddesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mdno=").append(mdno);
        sb.append(", mdtno=").append(mdtno);
        sb.append(", mano=").append(mano);
        sb.append(", tno=").append(tno);
        sb.append(", mdtime=").append(mdtime);
        sb.append(", mddesc=").append(mddesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}